var Sequelize = require('sequelize');
var CONST = require('./CONST');
var sequelize = new Sequelize("dunoinfo", "root", "123456", {host:"localhost", post:"3306", dialect:"mysql", benchmark:true});

/*
项目列表
 */
exports.Project = {

    title:Sequelize.STRING(200)
};

/*
项目详情
 */
exports.ProjectDetail = {

    kind_id:Sequelize.INTEGER,
    title:Sequelize.STRING(200),
    price:Sequelize.STRING(45),
    brief:Sequelize.STRING(200),
    attachment:Sequelize.STRING(200)
    
};

/*
项目类型
 */
exports.ProjectKind = {

    name:Sequelize.STRING(100),
    code:Sequelize.STRING(100)
    
};

/*
项目图片
 */
exports.ProjectImage = {

    alt:Sequelize.STRING(100),
    attachment:Sequelize.STRING(200)
    
};

exports.sequelize = sequelize;